Page({
  data: {
    swiperImages: [
      '../../images/image1.jpg',
      '../../images/image2.jpg',
      '../../images/image3.jpg'
    ]
  },
  downloadPDF: function() {
    wx.downloadFile({
      url: '../../images/document.pdf',
      success: function(res) {
        const filePath = res.tempFilePath
        wx.openDocument({
          filePath: filePath,
          success: function(res) {
            console.log('文档打开成功')
          }
        })
      }
    })
  }
})
